package com.shangxia.monomer.study.designPatterns.structuralType.facade;

import lombok.extern.slf4j.Slf4j;

/**
 * @ProjectName: monomer
 * @ClassName: FacadeDemoSed
 * @Time: 2021/7/20
 * @Author: zhouy
 * @Description:
 * @Experience:
 */

@Slf4j
public class FacadeDemoSed {
    public static void main(String[] args) {
        FacadeF facadeF = new FacadeF();
        facadeF.doSomeThing();
    }
}

class FacadeF {
    private SonSystem1 sonSystem1 = new SonSystem1();
    private SonSystem2 sonSystem2 = new SonSystem2();
    private SonSystem3 sonSystem3 = new SonSystem3();

    public void doSomeThing() {
        sonSystem1.doSomeThing();
        sonSystem2.doSomeThing();
        sonSystem3.doSomeThing();
    }

}


class SonSystem1 {
    public void doSomeThing() {
        System.out.println("SonSystem_1");
    }
}

class SonSystem2 {
    public void doSomeThing() {
        System.out.println("SonSystem_2");
    }
}

class SonSystem3 {
    public void doSomeThing() {
        System.out.println("SonSystem_3");
    }
}

